package com.dto;

/**
 * @author:LG
 * @date:Created at 2019/03/09
 */
public enum MessageEnum {
    /*常量表操作提示信息*/
    SELECT_COMMENT_SUCCESS(200, Messages.SELECT_COMMENT_SUCCESS),
    SELECT_COMMENT_FAIL(4001, Messages.SELECT_COMMENT_FAIL),
    ADD_COMMENT_SUCCESS(200, Messages.ADD_COMMENT_SUCCESS),
    ADD_COMMENT_FAIL(4001, Messages.ADD_COMMENT_FAIL),
    UPDATE_COMMENT_SUCCESS(200, Messages.UPDATE_COMMENT_SUCCESS),
    UPDATE_COMMENT_FAIL(4001, Messages.UPDATE_COMMENT_FAIL),
    DELETE_COMMENT_SUCCESS(200, Messages.DELETE_COMMENT_SUCCESS),
    DELETE_COMMENT_FAIL(4001, Messages.DELETE_COMMENT_FAIL),

    /*管理员*/
    SELECT_ADMINBYPAGE_SUCCESS(200, Messages.SELECT_ADMINBYPAGE_SUCCESS),
    SELECT_ADMINBYPAGE_FAIL(4001, Messages.SELECT_ADMINBYPAGE_FAIL),
    SELECT_ADMINBYPK_SUCCESS(200, Messages.SELECT_ADMINBYPK_SUCCESS),
    SELECT_ADMINBYPK_FAIL(4001, Messages.SELECT_ADMINBYPK_FAIL),

    ADDADMIN_SUCCESS(200, Messages.ADDADMIN_SUCCESS),
    ADDADMIN_FAIL(4001, Messages.ADDADMIN_FAIL),

    UPDATEADMINBYPK_SUCCESS(200, Messages.UPDATEADMINBYPK_SUCCESS),
    UPDATEADMINBYPK_FAIL(4001, Messages.UPDATEADMINBYPK_FAIL),

    DELETEADMINBYPK_SUCCESS(200, Messages.DELETEADMINBYPK_SUCCESS),
    DELETEADMINBYPK_FAIL(4001, Messages.DELETEADMINBYPK_FAIL),


    SEARCHADMIN_SUCCESS(200, Messages.SEARCHADMIN_SUCCESS),
    SEARCHADMIN_FAIL(4001, Messages.SEARCHADMIN_FAIL),


    /*排行榜*/
    SELECT_CHART_SUCCESS(200, Messages.SELECT_CHART_SUCCESS),
    SELECT_CHART_FAIL(4001, Messages.SELECT_CHART_FAIL),


    /*购物车*/
    SAVE_GOODSCAR_SUCCESS(200, Messages.SAVE_GOODSCAR_SUCCESS),
    SAVE_GOODSCAR_FAIL(4001, Messages.SAVE_GOODSCAR_FAIL),

    INIT_GOODSCAR_SUCCESS(200, Messages.INIT_GOODSCAR_SUCCESS),
    INIT_GOODSCAR_FAIL(4001, Messages.INIT_GOODSCAR_FAIL),


    /*图表操作*/
    SELECT_DATASET_SUCCESS(200,Messages.SELECT_DATASET_SUCCESS),
    SELECT_DATASET_FAIL(4001,Messages.SELECT_DATASET_FAIL),

    /*权限*/
    OPTION_FAIL(4001,Messages.OPTION_FAIL),






            ;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 状态信息
     */
    private String msg;


    MessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
